package org.jeecg.modules.communityInfluence.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.communityInfluence.entity.CommunityInfluence;
import org.jeecg.modules.communityInfluence.entity.CommunityInfluenceResult;
import org.jeecg.modules.communityInfluence.mapper.CommunityInfluenceMapper;
import org.jeecg.modules.communityInfluence.service.ICommunityInfluenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 社团影响力管理表
 * @Author: jeecg-boot
 * @Date:   2020-07-23
 * @Version: V1.0
 */
@Service
public class CommunityInfluenceServiceImpl extends ServiceImpl<CommunityInfluenceMapper, CommunityInfluence> implements ICommunityInfluenceService {

    @Autowired
    private CommunityInfluenceMapper communityInfluenceMapper;

    @Override
    public Page<CommunityInfluenceResult> getPageList(Page<CommunityInfluenceResult> page, CommunityInfluence communityInfluence) {
        return page.setRecords(communityInfluenceMapper.getPageList(communityInfluence));
    }
}
